package com.itheima.TCP.TCP接收协议;

import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.UUID;

public class ServerDemo4 {
    public static void main(String[] args) throws IOException {
        //创建服务器端ServerSocket
        ServerSocket ss = new ServerSocket(120);
        while (true) {
            //监听客户端连接
            Socket accept = ss.accept();
        //来一个客户端连接，创建一个线程任务去执行相应的上传任务
            new Thread(new SocketThread(accept)).start();
        }
        //  ss.close();

    }
}
